<?= $this->element('gmap_config') ?>

<?= $this->Html->css('jquery-gmaps.min', null, array('inline'=>false)) ?>
<?= $this->Html->script('http://maps.google.com/maps/api/js?sensor=true&amp;language=sr', array('inline'=>false)) ?>
<?= $this->Html->script('jquery-gmaps-1.0.0.min', array('inline'=>false)) ?>
<?= $this->Html->script('map', array('inline'=>false)) ?>

<div id="map"></div>

<h2><?= $Settings->name ?></h2>
<p><?= $Settings->address ?></p>
<p><b>tel:</b> <?= $Settings->phone ?></p>
<p><b>email:</b> <?= $Settings->email ?></p>
<p><b>MAT.BR:</b> <?= $Settings->matbr ?></p>
<p><b>PIB:</b> <?= $Settings->pib ?></p>

<form action="/kontakt/send/#contact-form" method="post" id="contact-form">
    <h2>Imate pitanje, komentar, sugestiju?</h2>

    <?= $this->Form->text('name', array(
        'value'       => @$data['name'],
        'placeholder' => 'Vaše Ime i Prezime...',
        'class'       => 'large'
    )) ?>
    <?= $this->Form->text('email', array(
        'value'       => @$data['email'],
        'placeholder' => 'Vaše E-Mail adresa...'
    )) ?>
    <?= $this->Form->textarea('message', array(
        'value'       => @$data['message'],
        'placeholder' => 'Poruka...'
    )) ?>
    
    <div class="submit">
        <?= $this->Html->image('/kontakt/captcha') ?>
        <?= $this->Form->text('captcha', array(
            'class' => 'captcha',
            'placeholder' => 'Tekst sa slike...'
        )) ?>
        <?= $this->Form->submit('Pošalji', array('div'=>false)) ?>
    </div>
    <p><?= $this->Session->flash() ?></p>
</form>